package com.ftg.learn.chapter08;

/**
 * 马场
 *
 * @author lijiaxin
 * @version 1.0
 * @date 2023/7/21 10:08
 */

public class HorseSpace {

    private int hsno;

    private String hsNaME;

    private Horse[] hourses;

    /**
     * 类的结构 :
     *
     * {}
     *
     * 构造方法 : 实例化  new
     */

    public HorseSpace(int capacity){
        hourses = new Horse[capacity];
    }

    public static void main(String[] args) {
        HorseSpace h1 = new HorseSpace(100);

        Horse red = new Horse();
        h1.hourses[0] = red;
    }

    }
